home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / OOP_Course / Labs / FruitView / FruitView.wn / WNDocument.wn < prev    next >
Unknown  |  1995-06-12  |  6.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Wanton Packer Module (music/wantonPacker) ext Supported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 01 | 04 00 18 64 04 00 02 bd |........|...d....|
|00000010| 04 00 02 41 04 00 02 0c | 04 00 02 43 00 04 50 5c |...A....|...C..P\|
|00000020| 00 04 50 58 00 04 50 64 | 00 04 50 68 00 04 50 6c |..PX..Pd|..Ph..Pl|
|00000030| 00 00 00 00 00 00 00 00 | 00 04 00 00 00 00 00 00 |........|........|
|00000040| 09 00 00 00 00 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|00000050| 00 00 02 8f 03 18 00 00 | 00 00 00 1d 03 9d 00 5a |........|.......Z|
|00000060| 04 eb 02 82 00 1d 00 00 | 00 00 ff 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 01 01 | 03 18 00 00 00 48 00 48 |........|.....H.H|
|00000080| 00 01 00 18 02 64 03 18 | 00 00 00 00 02 64 03 18 |.....d..|.....d..|
|00000090| 00 64 00 04 00 00 04 00 | 06 3d 00 24 00 35 01 6b |.d......|.=.$.5.k|
|000000a0| 00 0f 04 00 06 3d 00 24 | 00 35 01 6b 00 0f 00 7c |.....=.$|.5.k...||
|000000b0| 00 00 00 00 00 00 00 00 | 00 ff 00 00 00 00 00 00 |........|........|
|000000c0| 18 b4 00 00 18 b4 00 00 | 18 b4 00 00 27 2e 00 00 |........|....'...|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 04 00 18 64 | 04 00 02 bd 04 00 02 41 |.......d|.......A|
|00000110| 04 00 02 0c 04 00 02 43 | 00 04 50 5c 00 04 50 58 |.......C|..P\..PX|
|00000120| 00 04 50 64 00 04 50 68 | 00 04 50 6c 00 00 00 00 |..Pd..Ph|..Pl....|
|00000130| 00 00 00 00 00 04 00 00 | 00 00 00 00 09 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 01 00 00 00 00 00 02 8f |........|........|
|00000150| 03 18 00 00 00 00 00 1d | 03 9d 00 5a 04 eb 02 82 |........|...Z....|
|00000160| 00 1d 00 00 00 00 ff 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 01 01 03 18 00 00 | 00 48 00 48 00 01 00 18 |........|.H.H....|
|00000180| 02 64 03 18 00 00 00 00 | 02 64 03 18 00 64 00 04 |.d......|.d...d..|
|00000190| 00 00 04 00 06 3d 00 24 | 00 35 01 6b 00 0f 04 00 |.....=.$|.5.k....|
|000001a0| 06 3d 00 24 00 35 01 6b | 00 0f 00 77 00 00 00 00 |.=.$.5.k|...w....|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 18 b4 00 00 |........|........|
|000001c0| 18 b4 00 00 18 b4 00 00 | 27 2e 00 00 00 00 00 00 |........|'.......|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 04 0d 0d 0d 0d 00 04 | 0d 0d 0d 0d 00 06 00 08 |........|........|
|00000210| 00 00 00 00 00 02 0d 0d | 00 02 0d 0d 00 01 0d 00 |........|........|
|00000220| 20 fb 00 00 00 01 01 4e | 02 28 57 4e 47 72 61 70 | ......N|.(WNGrap|
|00000230| 68 69 63 2e 39 30 32 34 | 31 39 2e 74 69 66 66 f7 |hic.9024|19.tiff.|
|00000240| 0d 00 00 00 78 00 03 00 | 00 00 48 00 48 00 00 00 |....x...|..H.H...|
|00000250| 00 02 64 03 18 00 00 00 | 00 02 64 03 18 01 5b 05 |..d.....|..d...[.|
|00000260| 28 03 fc 00 02 00 00 00 | 48 00 48 00 00 00 00 03 |(.......|H.H.....|
|00000270| 18 02 64 00 01 00 00 00 | 64 00 00 00 01 00 01 01 |..d.....|d.......|
|00000280| 01 00 00 00 01 27 0f 00 | 01 00 01 00 00 00 00 00 |.....'..|........|
|00000290| 00 00 00 00 00 00 00 00 | 02 00 19 01 90 00 00 00 |........|........|
|000002a0| 00 00 40 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..@.....|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 18 04 |........|........|
|000002c0| 00 02 00 00 38 04 00 02 | 06 00 38 04 00 02 14 00 |....8...|..8.....|
|000002d0| 1c 04 00 02 18 00 1c 01 | 17 ff 00 15 0c 01 f7 31 |........|.......1|
|000002e0| ff 00 15 0c 00 f7 2e 20 | 20 46 69 72 73 74 2c 20 |....... | First, |
|000002f0| 63 72 65 61 74 65 20 61 | 20 6e 65 77 20 70 72 6f |create a| new pro|
|00000300| 6a 65 63 74 20 69 6e 20 | 50 72 6f 6a 65 63 74 20 |ject in |Project |
|00000310| 42 75 69 6c 64 65 72 20 | 6e 61 6d 65 64 20 ff 00 |Builder |named ..|
|00000320| 15 0c 01 f7 46 72 75 69 | 74 56 69 65 77 ff 00 15 |....Frui|tView...|
|00000330| 0c 00 f7 2c 20 6f 70 65 | 6e 20 69 74 73 20 6e 69 |..., ope|n its ni|
|00000340| 62 20 66 69 6c 65 20 69 | 6e 20 49 42 2c 20 61 6e |b file i|n IB, an|
|00000350| 64 20 64 72 61 77 20 74 | 68 65 20 73 63 72 65 65 |d draw t|he scree|
|00000360| 6e 20 69 6e 74 65 72 66 | 61 63 65 20 61 73 20 73 |n interf|ace as s|
|00000370| 68 6f 77 6e 20 62 65 6c | 6f 77 2e 20 20 28 4f 72 |hown bel|ow. (Or|
|00000380| 2c 20 69 6e 73 74 65 61 | 64 20 6f 66 20 64 72 61 |, instea|d of dra|
|00000390| 77 69 6e 67 20 69 74 20 | 62 72 61 6e 64 20 6e 65 |wing it |brand ne|
|000003a0| 77 2c 20 79 6f 75 20 63 | 61 6e 20 63 6f 70 79 20 |w, you c|an copy |
|000003b0| 74 68 65 20 6f 6e 65 20 | 66 72 6f 6d 20 74 68 65 |the one |from the|
|000003c0| 20 ff 00 15 0c 01 f7 49 | 42 5f 46 72 75 69 74 20 | ......I|B_Fruit |
|000003d0| ff 00 15 0c 00 f7 6c 61 | 62 20 69 6e 20 74 68 65 |......la|b in the|
|000003e0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 77 61 79 3a 0d | followi|ng way:.|
|000003f0| 02 4b 09 0d ff 00 15 0c | 01 f7 35 ff 00 15 0c 00 |.K......|..5.....|
|00000400| f7 2e 20 20 41 64 64 20 | 74 68 65 20 ff 00 15 0c |.. Add |the ....|
|00000410| 01 f7 64 72 61 77 53 65 | 6c 66 3a 3a ff 00 15 0c |..drawSe|lf::....|
|00000420| 00 f7 20 6d 65 74 68 6f | 64 20 74 6f 20 46 72 75 |.. metho|d to Fru|
|00000430| 69 74 2e 6d 20 61 6e 64 | 20 46 72 75 69 74 2e 68 |it.m and| Fruit.h|
|00000440| 2c 20 61 6c 6f 6e 67 20 | 77 69 74 68 20 61 6e 79 |, along |with any|
|00000450| 20 6f 74 68 65 72 20 63 | 6f 64 65 20 79 6f 75 20 | other c|ode you |
|00000460| 6d 61 79 20 6e 65 65 64 | 2e 20 20 42 65 20 73 75 |may need|. Be su|
|00000470| 72 65 20 74 68 61 74 20 | 74 68 65 20 6d 65 74 68 |re that |the meth|
|00000480| 6f 64 73 20 66 6f 72 20 | 63 68 61 6e 67 69 6e 67 |ods for |changing|
|00000490| 20 63 6f 6c 6f 72 20 61 | 6e 64 20 73 69 7a 65 20 | color a|nd size |
|000004a0| 73 65 6e 64 20 ff 00 15 | 0c 01 f7 5b 73 65 6c 66 |send ...|...[self|
|000004b0| 20 64 69 73 70 6c 61 79 | 5d ff 00 15 0c 00 f7 20 | display|]...... |
|000004c0| 62 65 66 6f 72 65 20 74 | 68 65 79 20 72 65 74 75 |before t|hey retu|
|000004d0| 72 6e 2e 0d 0d ff 00 15 | 0c 01 f7 36 ff 00 15 0c |rn......|...6....|
|000004e0| 00 f7 2e 20 20 41 64 64 | 20 74 68 65 20 ff 00 15 |... Add| the ...|
|000004f0| 0c 01 f7 61 70 70 44 69 | 64 49 6e 69 74 3a ff 00 |...appDi|dInit:..|
|00000500| 15 0c 00 f7 20 6d 65 74 | 68 6f 64 20 74 6f 20 46 |.... met|hod to F|
|00000510| 72 75 69 74 2e 6d 20 61 | 6e 64 20 46 72 75 69 74 |ruit.m a|nd Fruit|
|00000520| 2e 68 20 73 6f 20 74 68 | 61 74 20 74 68 65 20 6f |.h so th|at the o|
|00000530| 75 74 70 75 74 20 64 69 | 73 70 6c 61 79 73 20 73 |utput di|splays s|
|00000540| 68 6f 77 20 63 6f 72 72 | 65 63 74 20 63 75 72 72 |how corr|ect curr|
|00000550| 65 6e 74 20 76 61 6c 75 | 65 73 20 77 68 65 6e 20 |ent valu|es when |
|00000560| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00000570| 73 74 61 72 74 73 20 75 | 70 2e 0d 09 0d ff 00 15 |starts u|p.......|
|00000580| 0c 01 f7 37 ff 00 15 0c | 00 f7 2e 20 20 49 6e 20 |...7....|... In |
|00000590| 49 42 2c 20 ff 00 15 0c | 01 f7 50 61 72 73 65 ff |IB, ....|..Parse.|
|000005a0| 00 15 0c 00 f7 20 74 68 | 65 20 46 72 75 69 74 20 |..... th|e Fruit |
|000005b0| 63 6c 61 73 73 20 28 69 | 6e 20 74 68 65 20 4f 70 |class (i|n the Op|
|000005c0| 65 72 61 74 69 6f 6e 73 | 20 70 75 6c 6c 20 64 6f |erations| pull do|
|000005d0| 77 6e 20 6d 65 6e 75 29 | 2e 20 54 68 69 73 20 69 |wn menu)|. This i|
|000005e0| 6e 66 6f 72 6d 73 20 49 | 42 20 6f 66 20 74 68 65 |nforms I|B of the|
|000005f0| 20 6f 75 74 6c 65 74 73 | 20 61 6e 64 20 61 63 74 | outlets| and act|
|00000600| 69 6f 6e 20 6d 65 74 68 | 6f 64 73 20 6f 77 6e 65 |ion meth|ods owne|
|00000610| 64 20 62 79 20 46 72 75 | 69 74 20 73 6f 20 74 68 |d by Fru|it so th|
|00000620| 61 74 20 79 6f 75 20 63 | 61 6e 20 6d 61 6b 65 20 |at you c|an make |
|00000630| 63 6f 6e 6e 65 63 74 69 | 6f 6e 73 2e 0d 01 3a fc |connecti|ons...:.|
|00000640| 00 59 02 bb 00 59 02 0e | 01 d4 02 48 04 0c 04 c4 |.Y...Y..|...H....|
|00000650| 08 00 f7 ff 00 15 0c 03 | f7 f6 f5 4f 4f 50 20 43 |........|...OOP C|
|00000660| 6c 61 73 73 0d 46 72 75 | 69 74 56 69 65 77 0d 0d |lass.Fru|itView..|
|00000670| ff 00 15 0c 00 f7 fc 00 | 59 02 bb 00 59 00 0e 01 |........|Y...Y...|
|00000680| d4 02 48 04 0c 04 c4 08 | 00 f7 0d ff 00 15 0c 01 |..H.....|........|
|00000690| f7 50 75 72 70 6f 73 65 | ff 00 15 0c 00 f7 3a 20 |.Purpose|......: |
|000006a0| 20 55 73 69 6e 67 20 61 | 20 43 75 73 74 6f 6d 56 | Using a| CustomV|
|000006b0| 69 65 77 20 6f 62 6a 65 | 63 74 20 66 72 6f 6d 20 |iew obje|ct from |
|000006c0| 61 6e 20 49 42 20 70 61 | 6c 65 74 74 65 2c 20 79 |an IB pa|lette, y|
|000006d0| 6f 75 20 77 69 6c 6c 20 | 64 65 73 69 67 6e 20 79 |ou will |design y|
|000006e0| 6f 75 72 20 6f 77 6e 20 | 76 69 65 77 20 66 6f 72 |our own |view for|
|000006f0| 20 61 6e 20 49 42 20 69 | 6e 74 65 72 66 61 63 65 | an IB i|nterface|
|00000700| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 46 72 75 69 | version| of Frui|
|00000710| 74 2e 20 20 59 6f 75 20 | 77 69 6c 6c 20 61 6c 73 |t. You |will als|
|00000720| 6f 20 6c 65 61 72 6e 20 | 68 6f 77 20 74 6f 20 69 |o learn |how to i|
|00000730| 6d 70 6f 72 74 20 63 6c | 61 73 73 20 66 69 6c 65 |mport cl|ass file|
|00000740| 73 20 66 72 6f 6d 20 73 | 6f 6d 65 20 6f 74 68 65 |s from s|ome othe|
|00000750| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 69 6e |r applic|ation in|
|00000760| 74 6f 20 74 68 65 20 6e | 65 77 20 61 70 70 6c 69 |to the n|ew appli|
|00000770| 63 61 74 69 6f 6e 2e 0d | 0d 02 1a 0d 09 61 2e 20 |cation..|.....a. |
|00000780| 20 46 69 72 73 74 20 64 | 65 6c 65 74 65 20 74 68 | First d|elete th|
|00000790| 65 20 77 69 6e 64 6f 77 | 20 70 72 6f 76 69 64 65 |e window| provide|
|000007a0| 64 20 62 79 20 49 42 20 | 69 6e 20 74 68 65 20 63 |d by IB |in the c|
|000007b0| 75 72 72 65 6e 74 20 6c | 61 62 20 62 79 20 73 65 |urrent l|ab by se|
|000007c0| 6c 65 63 74 69 6e 67 20 | 69 74 20 61 6e 64 20 70 |lecting |it and p|
|000007d0| 72 65 73 73 69 6e 67 20 | 64 65 6c 65 74 65 2e 20 |ressing |delete. |
|000007e0| 20 57 68 65 6e 20 61 73 | 6b 65 64 20 74 6f 20 76 | When as|ked to v|
|000007f0| 65 72 69 66 79 2c 20 63 | 6c 69 63 6b 20 22 59 65 |erify, c|lick "Ye|
|00000800| 73 22 2e 0d 0d 09 62 2e | 20 20 44 6f 75 62 6c 65 |s"....b.| Double|
|00000810| 2d 63 6c 69 63 6b 20 6f | 6e 20 46 72 75 69 74 2e |-click o|n Fruit.|
|00000820| 6e 69 62 20 69 6e 20 74 | 68 65 20 ff 00 15 0c 01 |nib in t|he .....|
|00000830| f7 53 6f 6c 75 74 69 6f | 6e ff 00 15 0c 00 f7 20 |.Solutio|n...... |
|00000840| 64 69 72 65 63 74 6f 72 | 79 20 66 6f 72 20 74 68 |director|y for th|
|00000850| 65 20 ff 00 15 0c 01 f7 | 49 42 5f 46 72 75 69 74 |e ......|IB_Fruit|
|00000860| ff 00 15 0c 00 f7 20 6c | 61 62 2e 20 54 68 69 73 |...... l|ab. This|
|00000870| 20 77 69 6c 6c 20 6c 6f | 61 64 20 74 68 61 74 20 | will lo|ad that |
|00000880| 2e 6e 69 62 20 66 69 6c | 65 20 69 6e 74 6f 20 49 |.nib fil|e into I|
|00000890| 42 2e 0d 0d 09 63 2e 20 | 20 53 65 6c 65 63 74 20 |B....c. | Select |
|000008a0| 74 68 65 20 64 65 73 69 | 72 65 64 20 77 69 6e 64 |the desi|red wind|
|000008b0| 6f 77 20 61 6e 64 20 70 | 72 65 73 73 20 ff 00 15 |ow and p|ress ...|
|000008c0| 0c 01 f7 43 6f 70 79 ff | 00 15 0c 00 f7 2e 0d 0d |...Copy.|........|
|000008d0| 09 64 2e 20 20 4e 6f 77 | 20 63 6c 6f 73 65 20 74 |.d. Now| close t|
|000008e0| 68 65 20 46 72 75 69 74 | 2e 6e 69 62 20 66 69 6c |he Fruit|.nib fil|
|000008f0| 65 20 28 ff 00 15 0c 01 | f7 44 6f 63 75 6d 65 6e |e (.....|.Documen|
|00000900| 74 ff 00 15 0c 01 f7 2f | 43 6c 6f 73 65 2c 20 ff |t....../|Close, .|
|00000910| 00 15 0c 00 f7 6f 72 20 | 63 6c 69 63 6b 20 74 68 |.....or |click th|
|00000920| 65 20 63 6c 6f 73 65 20 | 62 75 74 74 6f 6e 20 69 |e close |button i|
|00000930| 6e 20 69 74 73 20 46 69 | 6c 65 20 77 69 6e 64 6f |n its Fi|le windo|
|00000940| 77 29 2e 0d 0d 09 65 2e | 20 20 53 65 6c 65 63 74 |w)....e.| Select|
|00000950| 20 74 68 65 20 46 69 6c | 65 20 57 69 6e 64 6f 77 | the Fil|e Window|
|00000960| 20 69 6e 20 74 68 65 20 | 6c 6f 77 65 72 20 6c 65 | in the |lower le|
|00000970| 66 74 20 63 6f 72 6e 65 | 72 20 6f 66 20 49 42 20 |ft corne|r of IB |
|00000980| 66 6f 72 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |for the |current |
|00000990| 6c 61 62 2e 0d 03 82 0d | 09 66 2e 20 20 50 72 65 |lab.....|.f. Pre|
|000009a0| 73 73 20 ff 00 15 0c 01 | f7 50 61 73 74 65 ff 00 |ss .....|.Paste..|
|000009b0| 15 0c 00 f7 2e 20 20 54 | 68 69 73 20 73 68 6f 75 |..... T|his shou|
|000009c0| 6c 64 20 63 6f 70 79 20 | 74 68 65 20 46 72 75 69 |ld copy |the Frui|
|000009d0| 74 2e 6e 69 62 20 77 69 | 6e 64 6f 77 20 74 6f 20 |t.nib wi|ndow to |
|000009e0| 74 68 69 73 20 2e 6e 69 | 62 20 66 69 6c 65 2e 20 |this .ni|b file. |
|000009f0| 20 49 74 20 69 73 20 6e | 6f 74 20 79 65 74 20 63 | It is n|ot yet c|
|00000a00| 6f 6e 6e 65 63 74 65 64 | 20 74 6f 20 6f 74 68 65 |onnected| to othe|
|00000a10| 72 20 6f 62 6a 65 63 74 | 73 2c 20 62 75 74 20 79 |r object|s, but y|
|00000a20| 6f 75 20 77 69 6c 6c 20 | 64 6f 20 74 68 61 74 20 |ou will |do that |
|00000a30| 6c 61 74 65 72 2e 29 0d | 0d ff 00 15 0c 01 f7 32 |later.).|.......2|
|00000a40| ff 00 15 0c 00 f7 2e 20 | 20 52 65 70 6c 61 63 65 |....... | Replace|
|00000a50| 20 74 68 65 20 63 6f 6c | 6f 72 20 69 6e 70 75 74 | the col|or input|
|00000a60| 20 74 65 78 74 66 69 65 | 6c 64 20 77 69 74 68 20 | textfie|ld with |
|00000a70| 74 68 72 65 65 20 72 61 | 64 69 6f 20 62 75 74 74 |three ra|dio butt|
|00000a80| 6f 6e 73 20 74 6f 20 63 | 68 6f 6f 73 65 20 65 69 |ons to c|hoose ei|
|00000a90| 74 68 65 72 20 72 65 64 | 2c 20 67 72 65 65 6e 2c |ther red|, green,|
|00000aa0| 20 6f 72 20 79 65 6c 6c | 6f 77 2e 20 20 54 6f 20 | or yell|ow. To |
|00000ab0| 69 6e 63 6c 75 64 65 20 | 74 68 65 20 74 68 69 72 |include |the thir|
|00000ac0| 64 20 62 75 74 74 6f 6e | 2c 20 41 6c 74 2d 64 72 |d button|, Alt-dr|
|00000ad0| 61 67 20 6f 6e 20 74 68 | 65 20 62 75 74 74 6f 6e |ag on th|e button|
|00000ae0| 20 6d 61 74 72 69 78 2e | 20 20 20 44 6f 75 62 6c | matrix.| Doubl|
|00000af0| 65 2d 63 6c 69 63 6b 20 | 74 68 65 20 66 69 72 73 |e-click |the firs|
|00000b00| 74 20 62 75 74 74 6f 6e | 20 6f 66 20 74 68 65 20 |t button| of the |
|00000b10| 6d 61 74 72 69 78 20 74 | 6f 20 73 65 6c 65 63 74 |matrix t|o select|
|00000b20| 20 69 74 20 69 6e 64 69 | 76 69 64 75 61 6c 6c 79 | it indi|vidually|
|00000b30| 2e 20 20 49 6e 20 74 68 | 65 20 69 6e 73 70 65 63 |. In th|e inspec|
|00000b40| 74 6f 72 2c 20 63 68 65 | 63 6b 20 74 68 61 74 20 |tor, che|ck that |
|00000b50| 69 74 73 20 74 61 67 20 | 69 73 20 61 6c 72 65 61 |its tag |is alrea|
|00000b60| 64 79 20 7a 65 72 6f 2e | 20 20 4e 6f 77 20 73 65 |dy zero.| Now se|
|00000b70| 6c 65 63 74 20 74 68 65 | 20 73 65 63 6f 6e 64 20 |lect the| second |
|00000b80| 61 6e 64 20 74 68 69 72 | 64 20 62 75 74 74 6f 6e |and thir|d button|
|00000b90| 73 2c 20 73 65 74 74 69 | 6e 67 20 74 68 65 69 72 |s, setti|ng their|
|00000ba0| 20 74 61 67 73 20 74 6f | 20 31 20 61 6e 64 20 32 | tags to| 1 and 2|
|00000bb0| 2c 20 72 65 73 70 65 63 | 74 69 76 65 6c 79 2e 0d |, respec|tively..|
|00000bc0| 0d 45 6e 6c 61 72 67 65 | 20 74 68 65 20 6d 61 69 |.Enlarge| the mai|
|00000bd0| 6e 20 77 69 6e 64 6f 77 | 20 73 6f 20 74 68 61 74 |n window| so that|
|00000be0| 20 74 68 65 72 65 20 69 | 73 20 72 6f 6f 6d 20 66 | there i|s room f|
|00000bf0| 6f 72 20 74 68 65 20 76 | 69 65 77 20 6f 6e 20 74 |or the v|iew on t|
|00000c00| 68 65 20 72 69 67 68 74 | 2e 20 20 44 72 61 67 20 |he right|. Drag |
|00000c10| 61 20 63 75 73 74 6f 6d | 20 76 69 65 77 20 6f 6e |a custom| view on|
|00000c20| 74 6f 20 74 68 65 20 77 | 69 6e 64 6f 77 20 61 6e |to the w|indow an|
|00000c30| 64 20 6d 61 6b 65 20 69 | 74 20 61 62 6f 75 74 20 |d make i|t about |
|00000c40| 74 68 72 65 65 20 69 6e | 63 68 65 73 20 73 71 75 |three in|ches squ|
|00000c50| 61 72 65 2e 20 20 20 46 | 6f 72 20 74 68 65 20 47 |are. F|or the G|
|00000c60| 72 6f 77 20 62 75 74 74 | 6f 6e 2c 20 73 65 74 20 |row butt|on, set |
|00000c70| 69 74 20 74 6f 20 62 65 | 20 43 6f 6e 74 69 6e 75 |it to be| Continu|
|00000c80| 6f 75 73 20 73 6f 20 74 | 68 61 74 20 79 6f 75 20 |ous so t|hat you |
|00000c90| 63 61 6e 20 6d 61 6b 65 | 20 74 68 65 20 46 72 75 |can make| the Fru|
|00000ca0| 69 74 20 67 72 6f 77 20 | 66 61 73 74 20 62 79 20 |it grow |fast by |
|00000cb0| 6a 75 73 74 20 68 6f 6c | 64 69 6e 67 20 64 6f 77 |just hol|ding dow|
|00000cc0| 6e 20 74 68 65 20 47 72 | 6f 77 20 62 75 74 74 6f |n the Gr|ow butto|
|00000cd0| 6e 20 77 69 74 68 20 74 | 68 65 20 6d 6f 75 73 65 |n with t|he mouse|
|00000ce0| 2e 20 20 53 61 76 65 20 | 28 ff 00 15 0c 01 f7 44 |. Save |(......D|
|00000cf0| 6f 63 75 6d 65 6e 74 ff | 00 15 0c 01 f7 2f 53 61 |ocument.|...../Sa|
|00000d00| 76 65 ff 00 15 0c 00 f7 | 29 20 74 68 65 20 2e 6e |ve......|) the .n|
|00000d10| 69 62 20 66 69 6c 65 2e | 0d 03 8a ff 00 15 0c 01 |ib file.|........|
|00000d20| f7 33 ff 00 15 0c 00 f7 | 2e 20 4e 6f 77 20 63 6f |.3......|. Now co|
|00000d30| 70 79 20 46 72 75 69 74 | 2e 6d 20 61 6e 64 20 46 |py Fruit|.m and F|
|00000d40| 72 75 69 74 2e 68 20 66 | 72 6f 6d 20 74 68 65 20 |ruit.h f|rom the |
|00000d50| ff 00 15 0c 01 f7 49 42 | 5f 46 72 75 69 74 ff 00 |......IB|_Fruit..|
|00000d60| 15 0c 00 f7 20 6c 61 62 | 20 69 6e 20 74 68 65 20 |.... lab| in the |
|00000d70| 66 6f 6c 6c 6f 77 69 6e | 67 20 77 61 79 3a 20 20 |followin|g way: |
|00000d80| 69 6e 20 50 42 2c 20 73 | 65 6c 65 63 74 20 ff 00 |in PB, s|elect ..|
|00000d90| 15 0c 01 f7 43 6c 61 73 | 73 65 73 ff 00 15 0c 00 |....Clas|ses.....|
|00000da0| f7 20 69 6e 20 74 68 65 | 20 66 69 6c 65 20 62 72 |. in the| file br|
|00000db0| 6f 77 73 65 72 20 61 6e | 64 20 64 6f 75 62 6c 65 |owser an|d double|
|00000dc0| 2d 63 6c 69 63 6b 20 74 | 68 65 20 73 75 69 74 63 |-click t|he suitc|
|00000dd0| 61 73 65 20 74 6f 20 62 | 72 69 6e 67 20 75 70 20 |ase to b|ring up |
|00000de0| 61 6e 20 4f 70 65 6e 20 | 70 61 6e 65 6c 2e 20 20 |an Open |panel. |
|00000df0| 49 6e 20 74 68 65 20 70 | 61 6e 65 6c 2c 20 66 69 |In the p|anel, fi|
|00000e00| 6e 64 20 61 6e 64 20 73 | 65 6c 65 63 74 20 46 72 |nd and s|elect Fr|
|00000e10| 75 69 74 2e 6d 20 66 72 | 6f 6d 20 74 68 65 20 49 |uit.m fr|om the I|
|00000e20| 42 5f 46 72 75 69 74 20 | 6c 61 62 20 53 6f 6c 75 |B_Fruit |lab Solu|
|00000e30| 74 69 6f 6e 20 64 69 72 | 65 63 74 6f 72 79 20 61 |tion dir|ectory a|
|00000e40| 6e 64 20 63 6c 69 63 6b | 20 4f 4b 2e 20 20 54 68 |nd click| OK. Th|
|00000e50| 69 73 20 77 69 6c 6c 20 | 63 6f 70 79 20 46 72 75 |is will |copy Fru|
|00000e60| 69 74 2e 6d 20 61 6e 64 | 20 46 72 75 69 74 2e 68 |it.m and| Fruit.h|
|00000e70| 20 69 6e 74 6f 20 74 68 | 65 20 70 72 6f 6a 65 63 | into th|e projec|
|00000e80| 74 2e 0d 0d ff 00 15 0c | 01 f7 34 ff 00 15 0c 00 |t.......|..4.....|
|00000e90| f7 2e 20 20 55 73 65 20 | 45 64 69 74 20 61 6e 64 |.. Use |Edit and|
|00000ea0| 20 6d 6f 64 69 66 79 20 | 74 68 65 20 63 6c 61 73 | modify |the clas|
|00000eb0| 73 20 66 69 6c 65 73 20 | 74 6f 20 77 6f 72 6b 20 |s files |to work |
|00000ec0| 77 69 74 68 20 74 68 65 | 20 6e 65 77 20 69 6e 74 |with the| new int|
|00000ed0| 65 72 66 61 63 65 3a 0d | 0d 09 61 2e 20 20 46 69 |erface:.|..a. Fi|
|00000ee0| 72 73 74 2c 20 6d 6f 64 | 69 66 79 20 74 68 65 20 |rst, mod|ify the |
|00000ef0| 2e 68 20 66 69 6c 65 20 | 74 6f 20 69 6e 64 69 63 |.h file |to indic|
|00000f00| 61 74 65 20 74 68 61 74 | 20 46 72 75 69 74 20 69 |ate that| Fruit i|
|00000f10| 6e 68 65 72 69 74 73 20 | 66 72 6f 6d 20 56 69 65 |nherits |from Vie|
|00000f20| 77 2c 20 6e 6f 74 20 4f | 62 6a 65 63 74 2e 20 0d |w, not O|bject. .|
|00000f30| 0d 09 62 2e 20 20 4d 6f | 64 69 66 79 20 74 68 65 |..b. Mo|dify the|
|00000f40| 20 2e 6d 20 66 69 6c 65 | 20 28 61 6e 64 20 2e 68 | .m file| (and .h|
|00000f50| 20 66 69 6c 65 29 20 73 | 75 63 68 20 74 68 61 74 | file) s|uch that|
|00000f60| 20 74 68 65 20 6d 65 74 | 68 6f 64 20 74 68 61 74 | the met|hod that|
|00000f70| 20 74 61 6b 65 73 20 74 | 68 65 20 63 6f 6c 6f 72 | takes t|he color|
|00000f80| 20 66 72 6f 6d 20 74 68 | 65 20 69 6e 74 65 72 66 | from th|e interf|
|00000f90| 61 63 65 20 77 6f 72 6b | 73 20 77 69 74 68 20 74 |ace work|s with t|
|00000fa0| 68 65 20 72 61 64 69 6f | 20 62 75 74 74 6f 6e 20 |he radio| button |
|00000fb0| 6d 61 74 72 69 78 2e 20 | 20 49 74 20 73 68 6f 75 |matrix. | It shou|
|00000fc0| 6c 64 20 6c 6f 6f 6b 20 | 61 74 20 74 68 65 20 22 |ld look |at the "|
|00000fd0| 73 65 6c 65 63 74 65 64 | 54 61 67 22 20 6f 66 20 |selected|Tag" of |
|00000fe0| 74 68 65 20 73 65 6e 64 | 65 72 20 74 6f 20 73 65 |the send|er to se|
|00000ff0| 65 20 77 68 69 63 68 20 | 62 75 74 74 6f 6e 20 77 |e which |button w|
|00001000| 61 73 20 63 6c 69 63 6b | 65 64 2e 20 20 28 43 68 |as click|ed. (Ch|
|00001010| 65 63 6b 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 |eck the |document|
|00001020| 61 74 69 6f 6e 20 6f 6e | 20 74 68 65 20 4d 61 74 |ation on| the Mat|
|00001030| 72 69 78 20 63 6c 61 73 | 73 2e 29 0d 0d 09 63 2e |rix clas|s.)...c.|
|00001040| 20 20 53 69 6e 63 65 20 | 46 72 75 69 74 20 69 73 | Since |Fruit is|
|00001050| 20 6e 6f 77 20 61 20 56 | 69 65 77 2c 20 79 6f 75 | now a V|iew, you|
|00001060| 20 6d 75 73 74 20 61 6c | 73 6f 20 63 68 61 6e 67 | must al|so chang|
|00001070| 65 20 69 74 20 74 6f 20 | 68 61 76 65 20 ff 00 15 |e it to |have ...|
|00001080| 0c 01 f7 69 6e 69 74 46 | 72 61 6d 65 3a ff 00 15 |...initF|rame:...|
|00001090| 0c 00 f7 20 69 6e 73 74 | 65 61 64 20 6f 66 20 69 |... inst|ead of i|
|000010a0| 6e 69 74 2e 0d 02 15 0d | ff 00 15 0c 01 f7 38 ff |nit.....|......8.|
|000010b0| 00 15 0c 00 f7 2e 20 20 | 43 6c 69 63 6b 20 6f 6e |...... |Click on|
|000010c0| 20 74 68 65 20 43 75 73 | 74 6f 6d 56 69 65 77 20 | the Cus|tomView |
|000010d0| 61 6e 64 20 67 6f 20 74 | 6f 20 74 68 65 20 49 6e |and go t|o the In|
|000010e0| 73 70 65 63 74 6f 72 20 | 28 41 74 74 72 69 62 75 |spector |(Attribu|
|000010f0| 74 65 73 29 2e 20 20 49 | 74 20 73 68 6f 75 6c 64 |tes). I|t should|
|00001100| 20 62 65 20 61 20 43 75 | 73 74 6f 6d 56 69 65 77 | be a Cu|stomView|
|00001110| 20 49 6e 73 70 65 63 74 | 6f 72 2e 20 20 43 68 6f | Inspect|or. Cho|
|00001120| 6f 73 65 20 46 72 75 69 | 74 20 61 73 20 74 68 65 |ose Frui|t as the|
|00001130| 20 6e 65 77 20 63 6c 61 | 73 73 20 66 6f 72 20 74 | new cla|ss for t|
|00001140| 68 65 20 43 75 73 74 6f | 6d 56 69 65 77 2e 0d 09 |he Custo|mView...|
|00001150| 0d ff 00 15 0c 01 f7 39 | ff 00 15 0c 00 f7 2e 20 |.......9|....... |
|00001160| 20 4d 61 6b 65 20 63 6f | 6e 6e 65 63 74 69 6f 6e | Make co|nnection|
|00001170| 73 20 28 63 6f 6e 74 72 | 6f 6c 2d 64 72 61 67 29 |s (contr|ol-drag)|
|00001180| 20 74 6f 20 74 68 65 20 | 6f 75 74 6c 65 74 73 20 | to the |outlets |
|00001190| 61 6e 64 20 61 63 74 69 | 6f 6e 73 20 6f 66 20 74 |and acti|ons of t|
|000011a0| 68 65 20 46 72 75 69 74 | 20 76 69 65 77 20 28 63 |he Fruit| view (c|
|000011b0| 6f 6e 6e 65 63 74 20 64 | 69 72 65 63 74 6c 79 20 |onnect d|irectly |
|000011c0| 74 6f 2f 66 72 6f 6d 20 | 74 68 65 20 46 72 75 69 |to/from |the Frui|
|000011d0| 74 20 76 69 65 77 20 69 | 6e 73 74 61 6e 63 65 20 |t view i|nstance |
|000011e0| 69 6e 20 74 68 65 20 77 | 69 6e 64 6f 77 29 2e 20 |in the w|indow). |
|000011f0| 20 43 6f 6e 6e 65 63 74 | 20 74 68 65 20 ff 00 15 | Connect| the ...|
|00001200| 0c 01 f7 64 65 6c 65 67 | 61 74 65 ff 00 15 0c 00 |...deleg|ate.....|
|00001210| f7 20 6f 75 74 6c 65 74 | 20 6f 66 20 74 68 65 20 |. outlet| of the |
|00001220| 46 69 6c 65 27 73 20 4f | 77 6e 65 72 20 69 63 6f |File's O|wner ico|
|00001230| 6e 20 69 6e 20 74 68 65 | 20 46 69 6c 65 20 57 69 |n in the| File Wi|
|00001240| 6e 64 6f 77 20 74 6f 20 | 74 68 65 20 46 72 75 69 |ndow to |the Frui|
|00001250| 74 20 76 69 65 77 20 69 | 6e 73 74 61 6e 63 65 20 |t view i|nstance |
|00001260| 73 6f 20 74 68 61 74 20 | ff 00 15 0c 01 f7 61 70 |so that |......ap|
|00001270| 70 44 69 64 49 6e 69 74 | 3a ff 00 15 0c 00 f7 20 |pDidInit|:...... |
|00001280| 77 69 6c 6c 20 67 65 74 | 20 73 65 6e 74 20 74 6f |will get| sent to|
|00001290| 20 74 68 65 20 46 72 75 | 69 74 20 69 6e 73 74 61 | the Fru|it insta|
|000012a0| 6e 63 65 20 61 74 20 61 | 70 70 6c 69 63 61 74 69 |nce at a|pplicati|
|000012b0| 6f 6e 20 73 74 61 72 74 | 75 70 2e 0d 02 ce 09 0d |on start|up......|
|000012c0| ff 00 15 0c 01 f7 31 30 | ff 00 15 0c 00 f7 2e 20 |......10|....... |
|000012d0| 20 53 61 76 65 20 20 28 | ff 00 15 0c 01 f7 44 6f | Save (|......Do|
|000012e0| 63 75 6d 65 6e 74 ff 00 | 15 0c 01 f7 2f 53 61 76 |cument..|..../Sav|
|000012f0| 65 20 ff 00 15 0c 00 f7 | 6f 72 ff 00 15 0c 01 f7 |e ......|or......|
|00001300| 20 63 6f 6d 6d 61 6e 64 | 2d 73 ff 00 15 0c 00 f7 | command|-s......|
|00001310| 29 20 74 68 65 20 69 6e | 74 65 72 66 61 63 65 20 |) the in|terface |
|00001320| 66 69 6c 65 20 61 67 61 | 69 6e 2e 20 20 52 65 74 |file aga|in. Ret|
|00001330| 75 72 6e 20 74 6f 20 50 | 42 2c 20 73 61 76 65 20 |urn to P|B, save |
|00001340| 74 68 65 20 70 72 6f 6a | 65 63 74 2c 20 61 6e 64 |the proj|ect, and|
|00001350| 20 62 75 69 6c 64 20 61 | 6e 64 20 72 75 6e 20 74 | build a|nd run t|
|00001360| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 0d |he appli|cation..|
|00001370| 0d 0d ff 00 15 0c 01 f7 | 45 78 74 65 6e 73 69 6f |........|Extensio|
|00001380| 6e 73 3a 20 ff 00 15 0c | 00 f7 20 54 72 79 20 64 |ns: ....|.. Try d|
|00001390| 72 61 77 69 6e 67 20 61 | 20 66 61 6e 63 69 65 72 |rawing a| fancier|
|000013a0| 20 66 72 75 69 74 2c 20 | 70 65 72 68 61 70 73 20 | fruit, |perhaps |
|000013b0| 61 20 63 69 72 63 6c 65 | 20 69 6e 73 74 65 61 64 |a circle| instead|
|000013c0| 20 6f 66 20 61 20 73 71 | 75 61 72 65 2e 20 20 52 | of a sq|uare. R|
|000013d0| 65 70 6c 61 63 65 20 74 | 68 65 20 43 6f 6c 6f 72 |eplace t|he Color|
|000013e0| 20 72 61 64 69 6f 20 62 | 75 74 74 6f 6e 20 6d 61 | radio b|utton ma|
|000013f0| 74 72 69 78 20 77 69 74 | 68 20 61 20 43 6f 6c 6f |trix wit|h a Colo|
|00001400| 72 57 65 6c 6c 2c 20 61 | 6e 64 20 73 65 74 20 74 |rWell, a|nd set t|
|00001410| 68 65 20 63 6f 6c 6f 72 | 20 6f 66 20 74 68 65 20 |he color| of the |
|00001420| 66 72 75 69 74 20 66 72 | 6f 6d 20 74 68 65 20 43 |fruit fr|om the C|
|00001430| 6f 6c 6f 72 57 65 6c 6c | 2c 20 6d 61 6b 69 6e 67 |olorWell|, making|
|00001440| 20 6f 74 68 65 72 20 63 | 68 61 6e 67 65 73 20 61 | other c|hanges a|
|00001450| 63 63 6f 72 64 69 6e 67 | 6c 79 2e 20 20 28 55 73 |ccording|ly. (Us|
|00001460| 65 20 ff 00 15 0c 01 f7 | 4e 58 53 65 74 43 6f 6c |e ......|NXSetCol|
|00001470| 6f 72 28 29 ff 00 15 0c | 00 f7 20 69 6e 20 ff 00 |or()....|.. in ..|
|00001480| 15 0c 01 f7 64 72 61 77 | 53 65 6c 66 3a 3a ff 00 |....draw|Self::..|
|00001490| 15 0c 00 f7 20 74 6f 20 | 73 65 74 20 74 68 65 20 |.... to |set the |
|000014a0| 63 75 72 72 65 6e 74 20 | 63 6f 6c 6f 72 20 66 6f |current |color fo|
|000014b0| 72 20 64 72 61 77 69 6e | 67 2e 29 20 20 4f 72 20 |r drawin|g.) Or |
|000014c0| 65 76 65 6e 20 67 6f 20 | 66 75 72 74 68 65 72 3a |even go |further:|
|000014d0| 20 20 61 6c 6c 6f 77 20 | 61 20 63 6f 6c 6f 72 20 | allow |a color |
|000014e0| 63 68 69 70 20 66 72 6f | 6d 20 74 68 65 20 43 6f |chip fro|m the Co|
|000014f0| 6c 6f 72 20 50 61 6e 65 | 6c 20 74 6f 20 62 65 20 |lor Pane|l to be |
|00001500| 64 72 61 67 67 65 64 20 | 61 6e 64 20 64 72 6f 70 |dragged |and drop|
|00001510| 70 65 64 20 6f 6e 20 74 | 6f 70 20 6f 66 20 74 68 |ped on t|op of th|
|00001520| 65 20 66 72 75 69 74 20 | 69 6e 20 6f 72 64 65 72 |e fruit |in order|
|00001530| 20 74 6f 20 63 68 61 6e | 67 65 20 74 68 65 20 63 | to chan|ge the c|
|00001540| 6f 6c 6f 72 20 28 56 69 | 65 77 20 68 61 73 20 61 |olor (Vi|ew has a|
|00001550| 20 6d 65 74 68 6f 64 20 | 66 6f 72 20 64 6f 69 6e | method |for doin|
|00001560| 67 20 74 68 69 73 3a 20 | ff 00 15 0c 01 f7 61 63 |g this: |......ac|
|00001570| 63 65 70 74 43 6f 6c 6f | 72 3a 61 74 50 6f 69 6e |ceptColo|r:atPoin|
|00001580| 74 3a ff 00 15 0c 00 f7 | 29 2e 20 0d 02 d6 0d 2d |t:......|). ....-|
|00001590| 20 20 54 6f 20 72 65 70 | 72 65 73 65 6e 74 20 74 | To rep|resent t|
|000015a0| 68 65 20 67 65 6e 65 72 | 69 63 20 70 69 65 63 65 |he gener|ic piece|
|000015b0| 20 6f 66 20 66 72 75 69 | 74 20 79 6f 75 20 63 61 | of frui|t you ca|
|000015c0| 6e 20 75 73 65 20 74 68 | 65 20 63 6f 64 65 20 66 |n use th|e code f|
|000015d0| 72 6f 6d 20 74 68 65 20 | ff 00 15 0c 01 f7 64 72 |rom the |......dr|
|000015e0| 61 77 73 65 6c 66 3a 3a | ff 00 15 0c 00 f7 20 6d |awself::|...... m|
|000015f0| 65 74 68 6f 64 20 69 6e | 20 74 68 65 20 65 61 72 |ethod in| the ear|
|00001600| 6c 69 65 72 20 70 72 6f | 67 72 61 6d 20 74 68 61 |lier pro|gram tha|
|00001610| 74 20 64 72 65 77 20 61 | 20 73 71 75 61 72 65 2c |t drew a| square,|
|00001620| 20 62 75 74 20 73 6c 69 | 67 68 74 6c 79 20 6d 6f | but sli|ghtly mo|
|00001630| 64 69 66 79 20 69 74 20 | 74 6f 20 62 65 20 61 20 |dify it |to be a |
|00001640| 66 69 6c 6c 65 64 20 73 | 71 75 61 72 65 20 72 61 |filled s|quare ra|
|00001650| 74 68 65 72 20 74 68 61 | 6e 20 61 20 73 74 72 6f |ther tha|n a stro|
|00001660| 6b 65 64 20 73 71 75 61 | 72 65 2c 20 6f 72 20 65 |ked squa|re, or e|
|00001670| 76 65 6e 20 6d 6f 64 69 | 66 79 20 69 74 20 74 6f |ven modi|fy it to|
|00001680| 20 64 72 61 77 20 61 20 | 66 69 6c 6c 65 64 20 63 | draw a |filled c|
|00001690| 69 72 63 6c 65 20 69 6e | 73 74 65 61 64 2e 0d 0d |ircle in|stead...|
|000016a0| 2d 20 54 68 65 20 66 72 | 75 69 74 20 62 65 69 6e |- The fr|uit bein|
|000016b0| 67 20 64 72 61 77 6e 20 | 73 68 6f 75 6c 64 20 67 |g drawn |should g|
|000016c0| 65 74 20 69 74 73 20 73 | 69 7a 65 20 66 72 6f 6d |et its s|ize from|
|000016d0| 20 74 68 65 20 ff 00 15 | 0c 01 f7 64 69 61 6d 65 | the ...|...diame|
|000016e0| 74 65 72 ff 00 15 0c 00 | f7 20 69 6e 73 74 61 6e |ter.....|. instan|
|000016f0| 63 65 20 76 61 72 69 61 | 62 6c 65 20 73 75 63 68 |ce varia|ble such|
|00001700| 20 74 68 61 74 20 77 68 | 65 6e 20 74 68 65 20 66 | that wh|en the f|
|00001710| 72 75 69 74 20 67 72 6f | 77 73 2c 20 74 68 65 20 |ruit gro|ws, the |
|00001720| 64 72 61 77 69 6e 67 20 | 6f 66 20 74 68 65 20 66 |drawing |of the f|
|00001730| 72 75 69 74 20 67 65 74 | 73 20 6c 61 72 67 65 72 |ruit get|s larger|
|00001740| 2e 0d 0d 2d 20 20 54 68 | 65 20 66 72 75 69 74 20 |...- Th|e fruit |
|00001750| 73 68 6f 75 6c 64 20 67 | 65 74 20 74 68 65 20 67 |should g|et the g|
|00001760| 72 61 79 20 6c 65 76 65 | 6c 20 6f 66 20 69 74 73 |ray leve|l of its|
|00001770| 20 66 69 6c 6c 20 66 72 | 6f 6d 20 74 68 65 20 ff | fill fr|om the .|
|00001780| 00 15 0c 01 f7 63 6f 6c | 6f 72 ff 00 15 0c 00 f7 |.....col|or......|
|00001790| 20 69 6e 73 74 61 6e 63 | 65 20 76 61 72 69 61 62 | instanc|e variab|
|000017a0| 6c 65 3a 0d 09 09 63 6f | 6c 6f 72 20 3d 20 22 72 |le:...co|lor = "r|
|000017b0| 65 64 22 20 20 20 2d 2d | 3e 20 20 20 67 72 61 79 |ed" --|> gray|
|000017c0| 20 6c 65 76 65 6c 20 3d | 20 30 2e 30 20 20 28 62 | level =| 0.0 (b|
|000017d0| 6c 61 63 6b 29 0d 09 09 | 63 6f 6c 6f 72 20 3d 20 |lack)...|color = |
|000017e0| 22 67 72 65 65 6e 22 20 | 20 20 2d 2d 3e 20 20 20 |"green" | --> |
|000017f0| 67 72 61 79 20 6c 65 76 | 65 6c 20 3d 20 30 2e 34 |gray lev|el = 0.4|
|00001800| 20 20 28 61 20 64 61 72 | 6b 20 67 72 61 79 29 0d | (a dar|k gray).|
|00001810| 09 09 63 6f 6c 6f 72 20 | 3d 20 22 79 65 6c 6c 6f |..color |= "yello|
|00001820| 77 22 20 20 20 2d 2d 3e | 20 20 20 67 72 61 79 20 |w" -->| gray |
|00001830| 6c 65 76 65 6c 20 3d 20 | 30 2e 37 20 28 61 20 76 |level = |0.7 (a v|
|00001840| 65 72 79 20 6c 69 67 68 | 74 20 67 72 61 79 29 0d |ery ligh|t gray).|
|00001850| 0d 54 68 65 20 70 72 6f | 63 65 64 75 72 65 20 69 |.The pro|cedure i|
|00001860| 73 3a 0d 0d 00 4e 64 00 | 06 3d 00 0f a7 00 02 14 |s:...Nd.|.=......|
|00001870| 00 00 a6 00 02 18 00 57 | 05 00 02 1f 01 51 24 00 |.......W|.....Q$.|
|00001880| 15 8c 00 d5 25 00 02 d7 | 00 2c 24 00 07 79 00 9d |....%...|.,$..y..|
|00001890| 24 00 09 95 00 ab 05 00 | 02 1c 00 0e 24 00 0d 19 |$.......|....$...|
|000018a0| 00 b9 24 00 03 f0 00 82 | 24 00 10 a5 00 66 24 00 |..$.....|$....f$.|
|000018b0| 12 bc 00 90 | |.... | |
+--------+-------------------------+-------------------------+--------+--------+